import spock.lang.Specification

/**
 * Created at 2017/11/27 19:29
 * @author gongweixin
 */
class ToStringExample extends Specification {
    def "test map to string"() {
        expect:
        "[a:1]" == [a:1].toString()
        '[a:1, b:[a, b]]' == [a:1, b: ["a","b"]].toString()
        '[a:1, b:[a, b], c:[a:2]]' == [a:1, b: ["a","b"], c: [a: 2]].toString()
    }
}
